Ext.define('BM.view.goods.ItemList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.goodsitemlist',
    title : '商品项次列表',
    store : 'GoodsItems',
    initComponent: function() {

        this.columns = [
            {header: '项次编号',  dataIndex: 'goodsItemtNum',  flex: 1},
            {header: '项次名称', dataIndex: 'goodsItemName', flex: 1},
            {header: '项次简称', dataIndex: 'goodsItemName_S', flex: 1},
            {header: '计算单位', dataIndex: 'unit', flex: 1},
            {header: '单位成本',  dataIndex: 'cost',  flex: 1},
            {header: '计费方式', dataIndex: 'billType', flex: 1},
            {header: '预设单价', dataIndex: 'singlePrice', flex: 1},
            {header: '项次类别', dataIndex: 'goodsCategory_FK', flex: 1},
            {header: '报警库存',  dataIndex: 'alertNum',  flex: 1},
            {header: '允许进货', dataIndex: 'stockFlag', flex: 1},
            {header: '消费打折', dataIndex: 'discountFlag', flex: 1},
            {header: '最低消费中', dataIndex: 'lowestFlag', flex: 1},
            {header: '备注', dataIndex: 'memo', flex: 1}
        ];

        this.callParent(arguments);
    }
});